<template>
<h1>EL-图标组件</h1>
  <el-icon v-if="f1" size="500px" @click="f"><TurnOff /></el-icon>
  <el-icon v-else size="500px" color="black" @click="f2"><Open /></el-icon>
</template>

<script setup>
import {ref} from "vue";

const f1=ref(true)
const f=()=>{
  f1.value=false
}
const f2=()=>{
  f1.value=true
}
</script>


<style scoped>

</style>